include(../dir.pri)

win32:TEMPLATE = vcapp
!win32:TEMPLATE = app

CONFIG -= qt
CONFIG += console

LIBS += -L../../bin

macx {
	QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
}


unix {

	INCLUDEPATH += ../../libusb-unix
	INCLUDEPATH += ../../libusb-unix/libusb
	LIBS += -L../../bin/lib
	CONFIG(debug, debug|release) {
		OBJECTS_DIR = Debug 
		LIBS += -L../math/Debug
		LIBS += -L../math
		LIBS += -L../libz800/Debug
		DESTDIR = ../../bin
		LIBS += -lz800D -lusb-1.0 -lmathD
		TARGET = z800testD
	} else {
		OBJECTS_DIR = Release
		LIBS += -L../math/Release
		LIBS += -L../math
		LIBS += -L../libz800/Release
		DESTDIR = ../../bin
		LIBS += -lz800 -lusb-1.0 -lmath
		TARGET = z800test
	}

} else {
	CONFIG(debug, debug|release) {
		LIBS += -L../libz800/Debug
		OBJECTS_DIR = Debug 
		DESTDIR = ../../bin
		LIBS += -lz800D
		TARGET = z800testD
	} else {
		LIBS += -L../libz800/Release
		OBJECTS_DIR = Release
		DESTDIR = ../../bin
		LIBS += -lz800
		TARGET = z800test
	}
}

INCLUDEPATH += ../libz800

unix { QMAKE_LFLAGS += -Wl,-rpath,../libz800 }

SOURCES += Main.cpp
